package ${package.Parent}.${cfg.dtoConvertPackage};
import org.mapstruct.Mapper;
import ${package.Entity}.${entity};
import ${package.Parent}.${cfg.dtoPackage}.${entity}AddDTO;
import ${package.Parent}.${cfg.dtoPackage}.${entity}UpdateDTO;

/**
 * <p>
 * ${table.comment!} dto转实体类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
@Mapper(componentModel = "spring")
public interface ${entity}Convert {
    /**
    * ${table.comment!} 添加dto转实体类
    * @param dto
    * @return
    */
    ${entity} addDtoToEntity(${entity}AddDTO dto);

    /**
    * ${table.comment!} 修改dto转实体类
    * @param dto
    * @return
    */
    ${entity} updateDtoToEntity(${entity}UpdateDTO dto);
}
